from time import sleep

def run():
    while True:
        print('i am a nice boy')
        sleep(3)

if __name__ == "__main__":
    while True:
        print('i m a good boy')
        sleep(2)

run()
#根本不会执行到run 因为这是单任务，一次只能执行一个任务

